<%@ Page Language="C#" MasterPageFile="~/Common/WebSiteMaster.master" AutoEventWireup="true" CodeBehind="D_PagingBulletedList.aspx.cs" Inherits="ScottCateAjax2008.Lesson03.D_PagingBulletedList" Title="Paging Bulleted Lists" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:ScriptManager ID="SM1" runat="server" />
    
    <asp:BulletedList ID="CitiesListBullets" 
        runat="server" 
        DataSourceID="CityData"
        DataTextField="name" />
    
    <cc1:PagingBulletedListExtender 
        runat="server" 
        Enabled="true"
        ID="PagedList"
        TargetControlID="CitiesListBullets"
        MaxItemPerPage="10" />
    
    <asp:XmlDataSource 
        runat="server"
        id="CityData"
        DataFile="~/App_Data/CityList.xml"
        XPath="/CityList/city" />
        
    <br />
        
</asp:Content>